package com.bootdo.hjh.service.impl;

import com.bootdo.hjh.dao.ProductDOMapper;
import com.bootdo.hjh.domain.ProductDO;
import com.bootdo.hjh.domain.ProductDOExample;
import com.bootdo.hjh.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by qingyong on 2018/4/1.
 */
@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private ProductDOMapper productDOMapper;

    @Override
    public List<ProductDO> findAllProduct() {

        List<ProductDO> all = productDOMapper.selectByExample(new ProductDOExample());

        return all;
    }
}
